package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * sewage_materiel
 */
@Data
@ApiModel(value = "AiForecastPO", description = "碳源预测")
public class AiForecastPO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "id", required = true)
    private Long id;

    @ApiModelProperty(value = "预测时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime forecastTime;

    @ApiModelProperty(value = "实时数据值", required = true)
    private Double realtimeData = null;

    @ApiModelProperty(value = "AI预测值（m³/h）", required = true)
    private Double forecastData = null;

    @ApiModelProperty(value = "AI预测值（mg/h）", required = true)
    private Double forecastData2 = null;

    @ApiModelProperty(value = "电量", required = true)
    private Double electricQuantity = null;

    @ApiModelProperty(value = "预测时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "预测时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime = LocalDateTime.now();

    @ApiModelProperty(value = "模型编码", required = true)
    private String modelCode;
}